<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page contentType="text/html;charset=UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
	<link href="themes/css/ui.common.css" rel="stylesheet" type="text/css" />
    <link href="themes/css/ui.child.css" rel="stylesheet" type="text/css" />
    <link href="themes/css/ui.tips.css" rel="stylesheet" type="text/css" />
    <link id="skin_css" rel="stylesheet" type="text/css" href="themes/css/ui.c.blue.css" />
    <link rel="stylesheet" href="themes/css/ui.validation.css" type="text/css"></link>
    <script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>   
    <script src="Scripts/jquery.json-2.2.min.js" type="text/javascript"></script>
    <script src="Scripts/jquery-ui-1.8.custom.min.js" type="text/javascript"></script>
    <script src="Scripts/ui.tips.js" type="text/javascript"></script>
    <script src="Scripts/ui.admincp.js" type="text/javascript" charset="UTF-8"></script>
    <script src="Scripts/ui.default.js" type="text/javascript" charset="UTF-8"></script>
    <script src="HtmlEditor/kindeditor-min.js" type="text/javascript"></script>
    <script src="HtmlEditor/kindeditor.js" type="text/javascript"></script> 
    <script src="Scripts/HtmEditorCreator.js" type="text/javascript"></script>
    <script type="text/javascript" src="Scripts/ui.validation.js"></script>
    <script type="text/javascript">
		$(function(){  
			setValidate();
 		}) ;
 		
 		function setValidate(){
    
    	 $("#form").validatingForm({
        	submitButtonId:"#btnSubmit",
        	  clearErrorsOnFocus:true,
        	 validateOnBlur:true
        	});
    	}
	</script>
</head>
<body>
	<div class="PageChild_Title">
			<img src=" themes/images/default/icons/archives.png"
				class="PageChild_Tbtnpic" />
			<span class="PageChild_separate"></span>
			<span class="PageChild_TbtnText"><h2>
					编辑规章制度
				</h2>
			</span>
			<span class="PageChild_separate"></span>
			<div id="marker" class="red-tips">
			</div>
			<div class="clear">
			</div>
	</div>
    <div class="PageChild_Where">
    	<form id="form" action="regulationInfo!modify.action" method="post">
        <table width="99%" style="height: 250px;" border="0" cellpadding="0" cellspacing="0">
        	<tr>
        	<td colspan="2">
        		<input name="regulationId" type="hidden" value="${regulationId}"/>
        	</td></tr>
            <tr>
                <td class="mtd" style="width: 79px;">
                    	规章制度标题:
                </td>
                <td>
                <input type="text" class="control required-field" id="txt_Title" name="title"  maxlength ="100" value="${title}"/>
                </td>
            </tr>
            <tr>
                <td class="mtd" valign="top">
                    	规章制度类别:
                </td>
                <td>
                	<s:select id="ddl_newsType" list="categoryList" listKey="categoryId" listValue="categoryName" headerKey="-1" headerValue="-请选择-" name="categoryId" theme="simple" emptyValueMsg="请选择规章制度类型。" emptyValueForValidate="-1" cssClass="control selectable-field"></s:select>
                </td>
            </tr>
            <tr>
                <td class="mtd" valign="top">
                  	  	规章制度内容:
                </td>
                <td valign="top">
                    <input type="text" id="txt_Content" name="content" uploadImageJson="upload_json.jsp"  
                       class="control required-field" style="width:98%;height:320px;" value="${content}"/>&nbsp; &nbsp;
                    <br />
                </td>
            </tr>
            <tr>
            	<td colspan="2" align="center">
            		<button id="btnSubmit" class="o-btn" type="submit">更新</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            	</td>
            </tr>
        </table>
        </form>
    </div>
</body>
<script type="text/javascript">
    //创建编辑器
    CreateEditor("txt_Content", "");

</script>
</html>